package com.biz.primus.model.payment.vo.req;

import com.biz.primus.model.payment.enums.WechatTradeType;
import lombok.Data;

@Data
public class WechatOrderReqVo extends PaymentReqVo implements IWechatPaymentReqVo {

    private static final long serialVersionUID = -6282141856411916345L;

    private String appId;

    private String openid;

    private String key;

    private String paymentChannelMchId;

    private String identificationPath;

    private String operator;

    private String billCreateIp;

    @Override
    public String getPaymentChannelMchId() {
        return paymentChannelMchId;
    }

    @Override
    public String getIp() {
        return super.getClientIp();
    }

    @Override
    public WechatTradeType getWechatTradeType() {
        return WechatTradeType.valueOf(getTradeType());
    }

    @Override
    public String getOpenid() {
        return openid;
    }

    @Override
    public String getAppId() {
        return appId;
    }

    @Override
    public String getKey() {
        return key;
    }

    @Override
    public String getIdentificationPath() {
        return identificationPath;
    }

}
